<%@page import="com.ckeditor.CKEditorConfig"%>
<%@page import="java.util.Iterator"%>
<%@page import="org.beanstech.model.SystemModel"%>
<%@page import="org.beanstech.persistence.Mstblsubject"%>
<%@page import="java.util.List"%>
<%@page import="org.beanstech.dao.DropDownConstructDao"%>
<%@ taglib uri="http://ckeditor.com" prefix="ckeditor" %>
<%
	if(session.getAttribute("userid")==null){
	%>
	<jsp:forward page="Before_login.jsp"></jsp:forward>
	<%} %>

<%@include file="header.jsp" %>
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>

<head>
	
	<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
	<script type="text/javascript" src="js/jquery-1.7.1.min.js"></script>
	<script type="text/javascript" src="js/jquery.numeric.js"></script>
	
	<link rel="stylesheet" href="css/main.css" type="text/css" />
	<script type="text/javascript">
	function loginsubmit(){
		document.getElementById("searchbook").submit();
		
	}
	</script>
	<title>Second Book Exchange | Effort towards Green Campaign</title>
	
	<%
	DropDownConstructDao dropdown = new DropDownConstructDao();
	List<SystemModel> customlist = dropdown.getSubjectList();
	CKEditorConfig settings = new CKEditorConfig();
	settings.addConfigValue("toolbar","[]");
	settings.addConfigValue("width","320");
	settings.addConfigValue("height","100");
	%>
</head><body>
	
		<div id="full_div_text">
		<div class="mydiv">
 		<h2>search your Book  </h2>
		</div>
		<div class="mydiv">
		Fill in any one of the details to search for your book <br /> You can search using one field or refine your search using other fields. <br />The more you give the search details, the more you get the exact results.</div>
		<div class="mydiv">
		<form name="searchbook" id="searchbook" action="searchbook">
		<table align="center">
		<tr>
		<td class="tdFont">Book Name </td>
			<td align="right">
			<div class="loginboxdiv">
  				<input type="text" class="loginbox" name="bookname"/>
			</div>			</td>
		</tr>
		<tr>
		<td class="tdFont">Author</td>
			<td align="right">
			<div class="loginboxdiv">
  				<input type="text" class="loginbox" name="author"/>
			</div>			</td>
		</tr>
		<tr>
		<td class="tdFont">Subject </td>
			<td align="right">
			<div>
  				<select class="divstyled" name="subject">
                    <%for(Iterator i = customlist.iterator(); i.hasNext();){ 
                    	SystemModel model = (SystemModel)i.next();
                    %>
                    <option value="<%=model.getId()%>"><%=model.getName() %></option>
                    <%} %>
                  </select>                                                                                           </select>
			</div>
			</td>
		</tr>
		
		
		<tr>
		
		<td colspan="2" align="right">
			
  				<a href="#" onclick="javascript:loginsubmit()"><img src="images/jpg_btn_search.jpg" class="button"/></a></td>			</td>
		</tr>
		</table>
		</form>
		</div>		
		</div>
		<div id="text">
			
			
			
			
		</div>
		
		
		

</body>
</html>
<jsp:include page="footer.jsp"></jsp:include>